<template>
  <div>
    <footer class="footer">
      <div class="container content">
        <p>
          <a href="/about">关于</a>
          <a href="/tags">标签</a>
        </p>
        <p>
          © 2020 Powered by
          <a href="http://zendea.com" target="_blank" class="light">
            {{ appName }}
          </a>
          v{{ appVersion }}
          <i class="iconfont icon-divider-vertical"></i>
          <small>Inspired by RubyChina</small>
        </p>
      </div>
    </footer>
  </div>
</template>

<script>
export default {
  computed: {
    appName() {
      return this.$store.state.config.appinfo.name || ''
    },
    appVersion() {
      return this.$store.state.config.appinfo.version || ''
    }
  }
}
</script>

<style lang="scss" scoped>
.footer {
  font-size: 14px;
  color: #666;
  background: none;
  text-align: center;
  margin: 0px 10px;
  a {
    color: #666;
    text-decoration: none;
  }

  .light {
    font-weight: 700;
  }
  .icon-divider-vertical {
    font-size: 12px;
  }
}
</style>
